package model;

import java.util.Date;

public class Myboard {
	private int num ;
	private String id ;	
	private String subject;
	private String content ;
	private String file;	
	private int readcount ;
	private Date regdate;
	 
	// 기본생성자, 필드 생성자, getter, setter, toString override
	
	public Myboard() {
		super();
	}
	public Myboard(int num, String id, String subject, String content,
			String file, int readcount, Date regdate) {
		super();
		this.num = num;
		this.id = id;
		this.subject = subject;
		this.content = content;
		this.file = file;
		this.readcount = readcount;
		this.regdate = regdate;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getFile() {
		return file;
	}
	public void setFile(String file) {
		this.file = file;
	}
	public int getReadcount() {
		return readcount;
	}
	public void setReadcount(int readcount) {
		this.readcount = readcount;
	}
	public Date getRegdate() {
		return regdate;
	}
	public void setRegdate(Date regdate) {
		this.regdate = regdate;
	}
	@Override
	public String toString() {
		return "Myboard [num=" + num + ", id=" + id + ", subject=" + subject
				+ ", content=" + content + ", file=" + file + ", readcount="
				+ readcount + ", regdate=" + regdate + "]";
	}
}
